package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import com.example.child_protection.enums.BooleanEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 疫苗修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemVaccineUpdateRequestDTO extends BaseUpdateRequestDTO {

    /**
     * 名称
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(required = true,value = "名称")
    private String name;

    /**
     * 代码
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(required = true,value = "代码")
    private String code;

    /**
     * 月龄
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(required = true,value = "月龄")
    private Integer ageMonth;

    /**
     * 针次
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(required = true,value = "针次")
    private Integer needleTime;

    /**
     * 接种年龄
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(required = true,value = "接种年龄")
    private Integer age;

    /**
     * 是否基础疫苗
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(required = true,value = "是否基础疫苗")
    private BooleanEnums isBasicVaccine;

    /**
     * 状态
     *
     * @mbggenerated
     */

    @ApiParam(hidden = false,value = "状态")
    private String states;

    public void valid(){

        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
